<template>

    <el-dialog
            title="手动充值"
            :visible.sync="dialogVisible"
            width="80%"
            :close-on-click-modal="false"
    >
        <div class="container">
            <el-form ref="form" :model="form" label-width="80px">
                <el-form-item label="备注信息">
                    <el-input v-model="form.handle_remark"></el-input>
                </el-form-item>
            </el-form>
        </div>

        <div style="text-align: center">
            <el-button type="primary" @click="save">确 定</el-button>
        </div>
    </el-dialog>

</template>

<script>
    export default {
        data() {
          return {
            dialogVisible: false,
            form:{}
          }
        },
        created() {

        },
    methods: {
      save(){
        axios.post('/admin/api/handle_recharge', this.form).then((res) => {
        if (res.data.code === 0) {
            this.dialogVisible = false;
        } else {
            this.$message(res.data.msg);
        }
        this.loading = false;
        }).catch((err) => {
            this.$message('系统错误');
        });
        this.dialogVisible = false;
      },
      show(order) {
        this.dialogVisible = true;
        this.form = order;
      }
    }
  }
</script>